/*
 * Copyright 2010 bedatadriven
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */

/**
 * JacobGen generated file --- do not edit
 *
 * (http://www.bigatti.it/projects/jacobgen)
 */
package com.bedatadriven.mso.excel;

import com.bedatadriven.mso.core.*;
import com.google.gwt.core.client.JavaScriptObject;

/** Wrapper for Excel.ChartFillFormat*/
public class ChartFillFormat extends JavaScriptObject {

	protected ChartFillFormat() { }
	public native final ExcelApplication getApplication()/*-{
		return this.Application;
	}-*/;

	public native final int getCreator()/*-{
		return this.Creator;
	}-*/;

	public native final Object getParent()/*-{
		return this.Parent;
	}-*/;

	protected native final void _oneColorGradient( int style, int variant, float degree)/*-{
		this.OneColorGradient( style, variant, degree);
	}-*/;

	public final void oneColorGradient(MsoGradientStyle style, int variant, float degree){
		_oneColorGradient(style.getValue(), variant, degree);
	}
	protected native final void _twoColorGradient( int style, int variant)/*-{
		this.TwoColorGradient( style, variant);
	}-*/;

	public final void twoColorGradient(MsoGradientStyle style, int variant){
		_twoColorGradient(style.getValue(), variant);
	}
	protected native final void _presetTextured( int presetTexture)/*-{
		this.PresetTextured( presetTexture);
	}-*/;

	public final void presetTextured(MsoPresetTexture presetTexture){
		_presetTextured(presetTexture.getValue());
	}
	public native final void solid()/*-{
		this.Solid( );
	}-*/;

	protected native final void _patterned( int pattern)/*-{
		this.Patterned( pattern);
	}-*/;

	public final void patterned(MsoPatternType pattern){
		_patterned(pattern.getValue());
	}
	public native final void userPicture( Object pictureFile,  Object pictureFormat,  Object pictureStackUnit,  Object picturePlacement)/*-{
		this.UserPicture( pictureFile, pictureFormat, pictureStackUnit, picturePlacement);
	}-*/;

	public native final void userTextured(String textureFile)/*-{
		this.UserTextured( textureFile);
	}-*/;

	protected native final void _presetGradient( int style, int variant,  int presetGradientType)/*-{
		this.PresetGradient( style, variant, presetGradientType);
	}-*/;

	public final void presetGradient(MsoGradientStyle style, int variant, MsoPresetGradientType presetGradientType){
		_presetGradient(style.getValue(), variant, presetGradientType.getValue());
	}
	public native final ChartColorFormat getBackColor()/*-{
		return this.BackColor;
	}-*/;

	public native final ChartColorFormat getForeColor()/*-{
		return this.ForeColor;
	}-*/;

	protected native final int _getGradientColorType()/*-{
		return this.GradientColorType;
	}-*/;

	public final MsoGradientColorType getGradientColorType(){
		return MsoGradientColorType.valueOf(_getGradientColorType());
	}
	public native final float getGradientDegree()/*-{
		return this.GradientDegree;
	}-*/;

	protected native final int _getGradientStyle()/*-{
		return this.GradientStyle;
	}-*/;

	public final MsoGradientStyle getGradientStyle(){
		return MsoGradientStyle.valueOf(_getGradientStyle());
	}
	public native final int getGradientVariant()/*-{
		return this.GradientVariant;
	}-*/;

	protected native final int _getPattern()/*-{
		return this.Pattern;
	}-*/;

	public final MsoPatternType getPattern(){
		return MsoPatternType.valueOf(_getPattern());
	}
	protected native final int _getPresetGradientType()/*-{
		return this.PresetGradientType;
	}-*/;

	public final MsoPresetGradientType getPresetGradientType(){
		return MsoPresetGradientType.valueOf(_getPresetGradientType());
	}
	protected native final int _getPresetTexture()/*-{
		return this.PresetTexture;
	}-*/;

	public final MsoPresetTexture getPresetTexture(){
		return MsoPresetTexture.valueOf(_getPresetTexture());
	}
	public native final String getTextureName()/*-{
		return this.TextureName;
	}-*/;

	protected native final int _getTextureType()/*-{
		return this.TextureType;
	}-*/;

	public final MsoTextureType getTextureType(){
		return MsoTextureType.valueOf(_getTextureType());
	}
	protected native final int _getType()/*-{
		return this.Type;
	}-*/;

	public final MsoFillType getType(){
		return MsoFillType.valueOf(_getType());
	}
	protected native final int _getVisible()/*-{
		return this.Visible;
	}-*/;

	public final MsoTriState getVisible(){
		return MsoTriState.valueOf(_getVisible());
	}
	protected native final void _setVisible( int value)/*-{
		this.Visible = value;
	}-*/;

	public final void setVisible(MsoTriState value){
		_setVisible(value.getValue());
	}
}
